package com.example.designModel.observe.process;


public class StockObserver extends Observe{

    public StockObserver(String name, Subject sub) {
        super(name, sub);
    }

    @Override
    public void Update() {
        System.out.printf("%s %s 关闭股票行情, 继续工作!",sub.getSubjectState(),name);
        System.out.println();
    }
}
